package com.gitee.neuray.security.auth.client.configuration;

import com.gitee.neuray.security.auth.client.config.ServiceAuthConfig;
import com.gitee.neuray.security.auth.client.config.SysAuthConfig;
import com.gitee.neuray.security.auth.client.config.UserAuthConfig;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

//import org.springframework.cloud.bus.jackson.RemoteApplicationEventScan;
//import org.springframework.cloud.client.loadbalancer.LoadBalanced;

/**
 * Created by 东睿小组.
 */
@Configuration
@ComponentScan({"com.gitee.neuray.security.auth.client","com.gitee.neuray.security.auth.common"})
//@RemoteApplicationEventScan(basePackages = "com.gitee.neuray.security.auth.common.event")
public class AutoConfiguration {
    @Bean
    ServiceAuthConfig getServiceAuthConfig(){
        return new ServiceAuthConfig();
    }

    @Bean
    UserAuthConfig getUserAuthConfig(){
        return new UserAuthConfig();
    }
    @Bean
    SysAuthConfig getSysAuthConfig(){
        return new SysAuthConfig();
    }


}
